Skip to main content
Version: DAI 7.2

Post-Installation Configuration

After installion, you can make adjustments to the configuration of the DAI server to prepare it for use within your organization.

Configuring Single Sign-On with DAI

If you want use Microsoft Active Directory (AD) Single Sign-On (SSO) with DAI, see Integrating DAI with Active Directory Single Sign-On (SSO).

Add Settings for Self-Signed SSL Certificates

If you've completed an advanced installation and used your own Certificate Authority to sign an SSL certificate, then you must update your configuration after installation.

  1. Stop the Digital Automation Intelligence Service through the Windows Services manager.

  2. Go to C:\ProgramData\Eggplant\Digital Automation Intelligence\config.yml and open the .yml file in a text editing tool.

  3. Add the following entry under the env key and save your file:

    config.yml
    env:
    REQUESTS_CA_BUNDLE: <path to the bundle of self-signed, intermediate and root Certificate Authority certificates>
  4. Restart the Digital Automation Intelligence Windows service.

Change the Eggplant DAI Port on Windows

Although Eggplant DAI assigns port 8000 by default during installation, you can specify a different port later:

  1. Stop the Digital Automation Intelligence Service through the Windows Services manager.
  2. Repeat an advanced installation and in steps 3 or 4, depending on your configuration, enter a new port value.
  3. When the installation is complete, restart the Digital Automation Intelligence Windows service.

Configure Eggplant DAI Application Server Logs Rotation

Eggplant DAI application server has a 60 day log rotation by default, though you can change the rotation setting under the config file:

  1. Stop the Digital Automation Intelligence Service through the Windows Services manager.
  2. Go to C:\ProgramData\Eggplant\Digital Automation Intelligence\config.yml and open the .yml file in a text editing tool.
  3. Look for DAI_SERVER_MAX_ROTATED_LOG_COUNT env key.
  4. Change the rotation log count number.
  5. Restart the Digital Automation Intelligence Windows service.

Log rotation behaviours

  • The log file is generated on a daily basis if there are transaction logs in Eggplant DAI.
  • The rotation will take place when there is a new incoming log file and the log folder contains the number of the log file which is equal to the configured value. For example :
    • Configure DAI_SERVER_MAX_ROTATED_LOG_COUNT: 3
    • DAI service log folder contains generated log files, for example:
      • log.txt.2023-01-01, log.txt.2023-01-03, log.txt.2023-01-04
    • If a new log file is created on 6th January, this log file will replace the earliest log file log.txt.2023-01-01. As a result, the following log files will be available:
      • log.txt.2023-01-03, log.txt.2023-01-04, log.txt.2023-01-06
    • And rotates again when there is a new incoming log file, for example:
      • log.txt.2023-01-04, log.txt.2023-01-06, log.txt.2023-01-07
  • This log rotation feature will only rotate log files which are created in DAI 6.5. Log files that have been created prior to DAI 6.5 will need to be managed manually.
  • The name format of the log file in DAI 6.5 is different from earlier versions of DAI. The new log file name format is log.txt.<timestamp>.
  • Log rotation excludes logs for PostgreSQL, Nginx, RabbitMQ and Keycloak. These logs will need to be managed manually.

Configure Eggplant DAI Bug Hunting

DAI includes a "bug hunting" feature to help you find bugs. See Bug Hunting for more information. You can run the Bug Hunter in two modes:

  • Bug Hunter Classic, (Default) which is a standalone process and executable.
  • Bug Hunter Lite, which runs under the ai-api (DAI API) service.

Bug Hunter Lite provides significant performance improvement over Bug Hunter Classic. But you need to enable it to use it. You can also optionally add the DAI_LOG_FACTORS to capture information about Bug Hunter.

To enable Bug Hunter Lite:

  1. Stop the Digital Automation Intelligence Service through the Windows Services manager.

  2. Go to C:\ProgramData\Eggplant\Digital Automation Intelligence\config.yml and open the .yml file in a text editing tool.

  3. Add the following entries and save your file:

    config.yml
     env:
    BUG_HUNTER_LITE_ENABLED: 1 <enabled to use Bug Hunter Lite>

    You can disable BUG_HUNTER_LITE_ENABLED by setting it to 0.

    note

    You can use this setting with the DAI_LOG_FACTORS setting described below to capture information about the Bug Hunter.

  4. Restart the Digital Automation Intelligence Windows service.

Enable Logging for the Factors Determing DAI Model Action Priorities

DAI uses several factors to determine the probability of executing an action when running an exploratory test. By default, DAI run logs do not iclude information about these factors. You can capture this information by enabling the DAI_LOG_FACTORS setting.

note

The DAI_LOG_FACTORS setting is available in DAI 6.5 and later.

  1. Stop the Digital Automation Intelligence Service through the Windows Services manager.

  2. Go to C:\ProgramData\Eggplant\Digital Automation Intelligence\config.yml and open the .yml file in a text editing tool.

  3. Add the following entries and save your file:

    config.yml
     env:
    DAI_LOG_FACTORS: 1 <enabled to capture information about the Bug Hunter>

    You can disable DAI_LOG_FACTORS by setting it to 0.

  4. Restart the Digital Automation Intelligence Windows service.